//
//  RestServiceClient.h
//  CareGiver
//
//  Created by Guillermo Moral on 8/23/14.
//  Copyright (c) 2014 Humana. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol RestServiceClientDelegate <NSObject>

-(void)serviceRequestFailedWithError:(NSError*)error;
-(void)serviceRequestReceiveData:(id)data;

@optional
-(void)serviceRequestProgress:(NSNumber*)percent direction:(BOOL)isUploading;
@end

@interface RestServiceClient : NSObject

@property id <RestServiceClientDelegate>delegate;
@property (nonatomic, strong) NSMutableDictionary *headers;
@property (nonatomic, strong) NSMutableDictionary *params;
@property (nonatomic, strong) NSMutableArray *arrayParam;

-(id)initWithDelegate:(id<RestServiceClientDelegate>)delegate
     serviceNamespace:(NSString*)ns
          serviceName:(NSString*)name;
- (void)setServiceDefinitions:(NSString*)ns name:(NSString*)name;
- (void)executeRequest;

@end
